package com.danco.training.zaneuskaya.service;

import java.util.List;

import com.danco.training.zaneuskaya.domain.Forum;
import com.danco.training.zaneuskaya.domain.Note;
import com.danco.training.zaneuskaya.domain.User;

/**
 * @author Zaneuskaya Aliaksandra
 *
 */
public interface ForumService extends EntityService<Forum> {

	List<Forum> getForumListByTitle(String title);

	List<Forum> getUserForumList(User user);

	void addForumMember(Forum forum, User user);

	void deleteMemberFromForum(Forum forum, User user);

	void addForumNote(Forum forum, Note note);

	void deleteForumNote(Forum forum, Note note);

	boolean isMember(Forum forum, User user);

}
